Listing 1  catout.cgi
<html>
<head>
<title>Cat Feeder Motor</title>
</head>
<body>

<center>
Click the button to switch the motor on:
<form method=get>
<input type=hidden name=01 value=2>
<input type=submit value="Switch motor on">
</form>

Click the button to switch the motor off:
<form method=get>
<input type=hidden name=00 value=2>
<input type=submit value="Switch motor off">
</form>

</body>
</html>

Listing 2 - catin.cgi
<html>
<meta http-equiv="refresh" content="3">
<head>
<title>Cat Feeder Switch</title>
</head>
<body>
<center>
The value of switch 3 is ?67
<br>
<img src=LED?67.gif>
</body>
</html>

Listing 3  index.htm
<html>
<head>
<title>Cat Feeder </title>
</head>
   <frameset cols="50%,50%" frameborder=1>
      <frame name="left" src="catout.cgi" marginheight=2 marginwidth=2 frameborder=1>
      <frame name="right" src="catin.cgi" marginheight=2 marginwidth=2 frameborder=1>
   </frameset>
</html>

Listing 4  RC servo driver
main:
   servo 4,75			closed position
loop:
   if input2 = 0 then loop	loop waiting for input
   servo 4,225			open position
   stop				stop the program